<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/page/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改招聘结果跟踪记录</title>
<link  href="${ctx}/css/add.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/js/recruitmentresult/add.js"></script>

</head>
<body>
<center><h2>修改招聘结果跟踪记录</h2></center>
<form action="${ctx}/recruitmentresult/update.do" onsubmit="return add(this)">
<input type="hidden" value="${dto.id}" id="dtoId"/>
<table width="60%" align="center" cellpadding="1" cellspacing="1" class="stripe_tb">
<tr>
		<th align="center">员工姓名<samp style="color: red;">*</samp></th>
		<td><input type="text" id="candidateName" value="${dto.candidateName}"/>
		</td>
	</tr>	
	<tr>
		<th align="center">公司</th>
		<td>
			<select id="complay">
<c:forEach items="${complays}" var="c">
				<option value="${c.id}" 
				  ${dto.complay.id eq c.id ? "selected='selected'":""}>
				  ${c.complayName}</option>
</c:forEach>
			</select>
		</td>
	</tr>
	<tr>
		<th align="center">部门</th>
		<td>
			<select id="dept">
<c:forEach items="${departments}" var="d">
				<option value="${d.id}"
				${dto.department.id eq d.id ? "selected='selected'":""}>
				${d.departmentName}</option>
</c:forEach>
			</select>
		</td>
	</tr>
	<tr>
		<th align="center">登记日期<samp style="color: red;">*</samp></th>
		<td>
		<fmt:formatDate value="${dto.registrationDate}" pattern="yyyy-MM-dd" var="regDate"/>
		<input id="registrationDate" value="${regDate}" class="Wdate"
			onfocus="WdatePicker()"/></td>
	</tr>
	<tr>
		<th align="center">职位名称</th>
		<td>
			<select id="position">
<c:forEach items="${positions}" var="p">
				<option value="${p.id}"
				${dto.position.id eq p.id ? "selected='selected'":""}>
				${p.positionName}</option>
</c:forEach>
			</select>
		</td>
	</tr>
	<tr>
		<th align="center">状态</th>
		<td>
			<select id="status">
<c:forEach items="${objStatus}" var="s">
				<option value="${s[0]}"
				${dto.status eq s[0] ? "selected='selected'":""}>
					${s[1]}</option>
</c:forEach>				
			</select>
		</td>
	</tr>
	<tr>
		<th align="center">原因<samp style="color: red;">*</samp></th>
		<td>
		<textarea rows="3" cols="40" id="reason">${dto.reason}</textarea>
		</td>
	</tr>
	<tr>
		<th align="center">备注</th>
		<td><textarea rows="8" cols="40" id="remark">${dto.remark}</textarea>
		</td>
	</tr>
	<tr align="center">
		<td colspan="2">
			<a href="${ctx}/recruitmentresult/list.do">查看所有</a>
			&nbsp;&nbsp;
			<input type="reset" value="重置"/>
			<input type="submit" value="保存"/>
		</td>
	</tr>
</table>
</form>
</body>
</html>